import { defineStore } from 'pinia'
import { Filter } from '/@/stores/interface'

export const useFilter = defineStore('filter', {
    state: (): Filter => {
        return {
            id: 0,
            host: '',
            name: '',
            note: '',
        }
    },
    actions: {
        dataFill(state: Filter) {
            this.$state = state
        }
    },
})
